<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./node_modules/vue/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="root">
      <button @click="showInfo1">点我提示信息</button>
      <input type="text" placeholder="按下回车提示输入" @keyup.enter="showInfo1">
    </div>
    <script type="text/javascript">
    let number =18;
    let person = {
        name:'zhangsan',
        age: number,
        sex:'男'
    };
    console.log(person);
    Object.defineProperty(person,'age',{
      get(){
          retur
          return number;
      },
      set(value){

      }
    });
    const vm = new Vue({
        el:'#root',
        data:{},
        methods:{
            showInfo1(e){
              console.log(e.target.value);
            },
        }
    });
    </script>
</body>
</html>